package com.wanxs.mall.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wanxs.mall.common.service.CrudService;
import com.wanxs.mall.common.utils.PageUtils;
import com.wanxs.mall.product.dto.AttrGroupDTO;
import com.wanxs.mall.product.entity.AttrAttrgroupRelationEntity;
import com.wanxs.mall.product.entity.AttrGroupEntity;
import com.wanxs.mall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author wanxs 130001934@qq.com
 * @since 1.0.0 2023-09-01
 */
public interface AttrGroupService extends CrudService<AttrGroupEntity, AttrGroupDTO> {

    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    AttrGroupEntity getEntity(Long id);

    void deleteRelation(List<AttrAttrgroupRelationEntity> entityList);

    List<AttrGroupEntity> selectList(QueryWrapper<AttrGroupEntity> catelogId);

    List<AttrGroupWithAttrsVo> withattr(Long catelog_id);
}